package com.kly.chatter.api.application.controller.im.rsp;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class UserInfoVo {

    private String userCode;

    /**
     * 是否会员
     */
    private boolean member;
    /**
     * 会话等级
     */
    private Integer level;

    private String nickName;

    private String avatarUrl;

    public static UserInfoVo toVo(String userCode, Integer level, Boolean member, String nickName, String avatarUrl) {
        return UserInfoVo.builder().userCode(userCode).level(level).nickName(nickName).avatarUrl(avatarUrl).member(member).build();
    }
}
